package cloudgamemysql

import (
	"gorm.io/gorm"
	"time"
)

// JWAdminUserEvent 用户在用户中心的行为记录表
type JWAdminUserEvent struct {
	ID        int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	UserID    int64          `json:"user_id" gorm:"column:user_id;type:bigint;not null;default:0;comment:用户ID"`
	Phone     string         `json:"phone" gorm:"column:phone;type:varchar(20);not null;default:'';comment:用户手机号"`
	EventName string         `json:"event_name" gorm:"column:event_name;type:varchar(500);not null;default:'';comment:事件名称"`
	CreatedAt time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (JWAdminUserEvent) TableName() string {
	return "jw_admin_user_event"
}
